#!/bin/bash
DEP_INFO_FILE="/etc/ascend_install.info"

if [[ -f "${DEP_INFO_FILE}" ]]; then
    . ${DEP_INFO_FILE}
    DRV_LIB64_COMMON_LDPATH=""${Driver_Install_Path_Param%*/}"/driver/lib64/common"
    DRV_LIB64_DRV_LDPATH=""${Driver_Install_Path_Param%*/}"/driver/lib64/driver"
    DRV_LIB64_LDPATH=""${Driver_Install_Path_Param%*/}"/driver/lib64"

    export LD_LIBRARY_PATH="${DRV_LIB64_COMMON_LDPATH}":"${DRV_LIB64_DRV_LDPATH}":"${DRV_LIB64_LDPATH}":"${LD_LIBRARY_PATH}"
    # add for 1980B MT poc
    export PATH=$PATH:/usr/local/sbin:/usr/local/bin
fi
